package com.study.service;

import com.study.pojo.dto.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    List<User> getUsers();

    void register(User user);

    User login(String username,String password);

    /**
     * 判断用户名可不可用
     * @param username 用户名
     */
    void usernameExist(@Param("username") String username);

    User queryUserByUsername(@Param("username") String username);

}
